package com.heima.homeservicemanagementsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.v3.oas.annotations.tags.Tag;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JapaneseDateTypeHandler;

import java.io.Serializable;
import java.util.Date;

/**
 * 地址;
 *
 * @author : http://www.chiner.pro
 * @date : 2025-4-9
 */
@Data
/*@ApiModel(value = "地址",description = "")*/
@Tag(name = "地址")
@TableName(value = "user_address", autoResultMap = true)
@EqualsAndHashCode(callSuper = false)
public class UserAddress implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;

    @Schema(title = "收件人", description = "")
    private String name;

    @Schema(title = "电话", description = "")
    private String tel;

    @Schema(title = "所在地区", description = "")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private Region region;

    @Schema(title = "详细地址", description = "")
    private String detailed;

    @Schema(title = "所属用户id", description = "")
    private String userId;

    @Schema(title = "是否默认", description = "")
    private String isDefault;
    @Schema(title = "头显示", description = "")
    private String head;
}